package buttons1;

import javax.swing.*;
import java.awt.*;
import java.util.PrimitiveIterator;

public class ButtonFrame extends JFrame{
    private static final int DEFAULT_WIDTH=300;
    private static final int DEFAULT_HEIGHT=200;
    private JPanel panel;
    private JButton yellowButton;
    private JButton buleButton;
    private JButton redButton;
    public ButtonFrame()
    {
        setSize(DEFAULT_WIDTH,DEFAULT_HEIGHT);
        panel=new JPanel();
        panel.setName("panel");
        add(panel);
        yellowButton=new JButton("Yellow");
        yellowButton.setName("yellowButton");
        buleButton=new JButton("bule");
        buleButton.setName("buleButton");
        redButton=new JButton("red");
        redButton.setName("redButton");
        panel.add(yellowButton);
        panel.add(buleButton);
        panel.add(redButton);

    }
}
